<h3><?php echo __text('Translation'); ?></h3>
<?php echo Toolbar::factory('core/admin/i18n/translation/index') -> render(); ?>

<?php if(isset($form)){echo $form;}?>
<div class="adminTableWrapper">
	<table class="adminTable">
		<thead>
			<tr>
				<td>ID</td>
				<td><?php echo __text('Phrase'); ?></td>
				<td><?php echo __text('Language'); ?></td>
				<td><?php echo __text('Module'); ?></td>
				<td><?php echo __text('Translated'); ?></td>
				<td><?php echo __text('Default'); ?></td>
				<td><?php echo __text('Operations'); ?></td>
			</tr>
		</thead>
		<tbody>
			<?php foreach($items as $item): ?>
			<tr>
				<td><?php echo $item -> getId(); ?></td>
				<td><?php echo $item -> getPhrase(); ?></td>
				<td><?php echo $item -> getLanguage(); ?></td>
				<td><?php echo $item -> getModule(); ?></td>
				<td><?php echo $item -> getTranslateText(); ?></td>
				<td><?php echo $item -> getDefaultText(); ?></td>
				<td>
					<a href="<?php echo Agilet::getUrl('admin/system/i18n/translation/edit', array('id' => $item -> getId())); ?>"><?php echo __text('Edit'); ?></a>
					|
					<a href="<?php echo Agilet::getUrl('admin/system/i18n/translation/delete', array('id' => $item -> getId())); ?>"><?php echo __text('Delete'); ?></a>
				</td>
			</tr>
			<?php endforeach; ?>
		</tbody>
	</table>
</div>
